import gulp from 'gulp';


import {deleteAsync} from 'del';


gulp.task('vendor', async function (cb) {


    const deletedFilePaths = await deleteAsync([
        ...[
            'docs/vendor/@mdi/font/*',
            '!docs/vendor/@mdi/font/css',
            '!docs/vendor/@mdi/font/fonts',
        ],
        ...[
            'docs/vendor/bootstrap/*',
            '!docs/vendor/bootstrap/dist',
        ],
        ...[
            'docs/vendor/bootstrap-5.3.0-alpha1/*',
            '!docs/vendor/bootstrap-5.3.0-alpha1/dist',
        ],
        ...[
            'docs/vendor/bootstrap-icons/*',
            '!docs/vendor/bootstrap-icons/font',
        ],
        ...[
            'docs/vendor/docsify/*',
            '!docs/vendor/docsify/lib',
            '!docs/vendor/docsify/themes',
        ],
        ...[
            'docs/vendor/docsify-count/*',
            '!docs/vendor/docsify-count/dist',
        ],
        ...[
            'docs/vendor/docsify-copy-code/*',
            '!docs/vendor/docsify-copy-code/dist',
        ],
        ...[
            'docs/vendor/jquery/*',
            '!docs/vendor/jquery/dist',
        ],
        ...[
            'docs/vendor/purecss/*',
            '!docs/vendor/purecss/build',
        ],
    ],{dot: true});
    console.log('lib依赖目录脏目录删除:\n', deletedFilePaths.join('\n'));
});











